<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:cs="http://myfaces.apress.com/custom"
				template="/WEB-INF/layouts/standard.xhtml"
				xmlns:a4j="http://richfaces.org/a4j"
				xmlns:rich="http://richfaces.org/rich"
				xmlns:c="http://java.sun.com/jstl/core">


	<ui:define name="content">	
	
		
	
		<div>
			
			<a4j:outputPanel id="attendentFragment">

				<h:form id="attendents">				
					
					<div id="addAttendentSec" class="section">
					    <span class="errors">
					       <h:messages globalOnly="true" />
					    </span>
						<h2>Add Attendent</h2>						
							<fieldset>											
								<div class="field">
									<div class="label">Name:</div>
									<div class="input">
										<sf:clientTextValidator required="true">
											<h:inputText required="true" requiredMessage="Attendent Name is required !" 
												id="aname" value="#{attendent.name}">
												<rich:beanValidator />
											</h:inputText>
										</sf:clientTextValidator>						
									</div>
								</div>													
								<div class="buttonGroup">
									<a4j:commandButton id="addAttendentBtn" reRender="#{flowRenderFragments}"  value="Add" action="addAttendentDone" />
								</div>
						    </fieldset>								
					</div>
				</h:form>
			</a4j:outputPanel>
		</div>
		
		
	</ui:define>
</ui:composition>